package com.cfl.springboot.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@SpringBootApplication
@ComponentScan(basePackages = "com.cfl")
public class HelloApplication {

	@RequestMapping("hello")
	@ResponseBody
	public String hello() {
		
		return "hello word 旅途车票";
	}
	
	
	public static void main(String[] args) {
		
		SpringApplication.run(HelloApplication.class, args);
	}
}
